package com.jk.hly.controller;

import com.jk.hly.service.HlyLogService;
import com.jk.hly.util.ReceivePage;
import com.jk.hly.util.SendPage;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("log")
public class HlyLogController {

    @Resource
    private HlyLogService  logService;

    @ResponseBody
    @RequestMapping("queryLogList")
    public SendPage queryLogList(ReceivePage page){

        return logService.queryLogList(page);
    }

    @ResponseBody
    @RequestMapping("queryEmailList")
    public SendPage queryEmailList(ReceivePage page){

        return logService.queryEmailList(page);
    }
}
